/**
 * Created by Administrator on 2017/5/3 0003.
 */

var siteUrl=window.location.host+'/';

// var siteUrl = 'http://www.hospiatl.tt/';

var index = 'home/doctor-list';  //首页
var keshi = 'depart/department-list';//首页科室
var yuyue = 'doctor/doctor-work-time'//预约时间段
var doctor_info = 'doctor/doctor-info'//医师简介
var member_index = 'user/one-user';//个人中心
var information = ''//档案信息
var my_favorable = 'favorable/list-my-favorable'//未使用优惠劵
var my_favorable_used = 'favorable/list-favorable-used'//已使用优惠劵
var list_favorable = 'favorable/list-favorable'//优惠劵列表
var get_favorable = 'favorable/my-favorable'//领劵
var feedBackUrl = 'response/add-response';// 问题反馈提交接口
var recharge_history = 'charge/charge-log';//充值记录
var follow = 'follow/add-follow';//关注
var follow_list = 'follow/my-follow-list';//关注列表e
var cancle_follow = 'follow/cancle-follow';//取消关注
var news = 'message/message-list';//消息

var hosURL = 'member/my-member-list';//就诊人员页面数据接口
var bindURL = 'card/bind-card-info';//绑定界面
var bindSaveURL = 'card/add-bind-card';//保存绑卡信息
var addSaveURL = 'member/add-member';//保存添加就诊人信息
var delMemURL = 'member/del-member';//删除就诊人信息
var infoSaveURL = 'appoint/appointemt-info';//保存预约信息
var infoCheckURL = 'appoint/appointment-info';//查看预约信息


var hosURL = 'member/my-member-list';//就诊人员页面数据接口
var bindURL = 'card/bind-card-info';//绑定界面
var bindSaveURL = 'card/add-bind-card';//保存绑卡信息
var addSaveURL = 'member/add-member';//保存添加就诊人信息
var delMemURL = 'member/del-member';//删除就诊人信息
var infoSaveURL = 'appoint/appointment-info';//保存预约信息
var infoAddURL = 'appoint/add-appointment-info';//提交预约信息
var infoCheckURL = 'appoint/appointment-info';//查看预约信息
var payURL = 'appoint/appointment-list';//查看预约支付以及使用信息
var delAppointURL = 'appoint/del-appoint-del';//删除待支付订单
var commentURL = 'comment/add-comment';//保存用户评价
var feedbackURL = 'response/add-response';//保存用户反馈
var searchURL = 'search/index';//显示搜索的医师界面
var checkStateURL= 'appoint/check-member-card';//检测是否绑定就诊卡
var apiwxpay = 'pay/wxpay';//微信支付

function checkCookie() {
    if (!($.cookie("mid") && $.cookie("token"))) {
        self.location.href = siteUrl + 'home.html';
    }
}

//创建提示框
function creatLayout(Html){
    var Layout = document.createElement('div');
    Layout.className = 'code_tips';
    Layout.innerHTML = Html;
    document.body.appendChild(Layout);
    Move(Layout,'opacity',100);
    setTimeout(function(){
        Move(Layout,'opacity',0);
        setTimeout(function(){
            document.body.removeChild(Layout);
        },500)
    },1000)
}




